package com.example.stock.comm;

public enum StrategyEnum {
    EMA_UP, EMA_REF0, EMA_CROSS, EMA_PURE, EMA_UP_COMPLEX,
    MA_UP,  MA_REF0,  MA_CROSS, MA_PURE,
    // MACD 中的 dea 线
    DEA_UP,
    // JJ:=EMA((CLOSE-MA(CLOSE,M))*1000/MA(CLOSE,M),N),LINETHICK2,COLOR0000FF;
    // CLOSE -> MA(CLOSE,2)
    EMA_UP2,

    // JJ:=EMA((CLOSE-MA(CLOSE,M))*1000/MA(CLOSE,N),54),LINETHICK2,COLOR0000FF;
    EMA_UP_HEAD,

    //ema超过一定值不操作
    EMA_UP_REF,

    EMA_UP_SIMPLE,
    EMA_UP_SS,

    EMA_UP_CLOSE,
    ;

    public static StrategyEnum getByNameExt(String name) {
        for (StrategyEnum value : StrategyEnum.values()) {
            if (value.name().equalsIgnoreCase(name)) {
                return value;
            }
        }
        throw new RuntimeException("不包含该枚举");
    }
}
